//
//  ViewContainersView.swift
//  learn-ios
//
//  Created by Dong on 2022/4/5.
//

import SwiftUI

struct ViewContainersView: View {
    var body: some View {
        NavigationView {
            List {
                NavigationLink {
                    Layouts()
                } label: {
                    Text("布局（Stacks & Grids）")
                }

                NavigationLink {
                    Collections()
                } label: {
                    Text("集合（Lists & Tables & Forms）")
                }
                
                NavigationLink {
                    Layouts()
                } label: {
                    Text("展示（Navigation & Outlines & Tab Views）")
                }
            }
            .navigationTitle("容器视图")
        }
    }
}

struct ViewContainersView_Previews: PreviewProvider {
    static var previews: some View {
        ViewContainersView()
    }
}
